import request from '@/utils/request'

// 获取订单分页数据
export function getOrderList(data) {
  return request({
    url: '/manager/order-manager/order/page',
    method: 'post',
    data
  })
}

// 获取省市区数据
export function getArea(params) {
  return request({
    url: '/manager/areas/children',
    params
  })
}

// 获取订单详情
export function getOrderDetail(id) {
  return request({
    url: `/manager/order-manager/order/${id}`,
    method: 'get',
    params: { id }
  })
}

// 获取运单列表数据
export function getWaybillList(data) {
  return request({
    url: '/manager/transport-order-manager/page',
    method: 'post',
    data
  })
}
